<template>
  <div v-if="isShow">
    <van-skeleton title :row="20" />
  </div>
  <router-view v-slot="{ Component }" v-else>
    <keep-alive>
      <component :is="Component" />
    </keep-alive>
  </router-view>
</template>

<script setup>
import { ref, watch } from 'vue';
import { useRoute } from 'vue-router';
let isShow=ref(false)
let route=useRoute()
watch(
  ()=>route.path,
  ()=>{
    isShow.value=true
    setTimeout(()=>{
      isShow.value=false
    },1000)
  }
)
</script>

<style lang="scss" scoped></style>